<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;

//banner
Route::get('api/:version/banner/:id', 'api/:version.BannerController/get');

//主题商品
Route::get('api/:version/theme/:ids','api/:version.ThemeController/getTheme');

//商品
Route::get('api/:version/product/:id','api/:version.ProductController/getProductInfo',[],['id' => '\d+']);
Route::get('api/:version/product/recent','api/:version.ProductController/getRecent');
Route::get('api/:version/product/all','api/:version.ProductController/getAll');

//分类
Route::get('api/:version/category/all','api/:version.CategoryController/getCategoryAll');

//token
Route::get('api/:version/token/:code','api/:version.TokenController/getToken');

Route::post('api/:version/order','api/:version.OrderController/placeOrder');